package com.zhl.singleInstance6;

public class Test {
    public static void main(String[] args) {
        //目标：掌握单例类的设计模式
        A a1 = A.getObject();
        A a2 = A.getObject();
        System.out.println(a1);
        System.out.println(a2);
    }
}
